﻿namespace EyeOpen.Security.Mvc.Models
{
	using System.ComponentModel.DataAnnotations;

	using EyeOpen.ComponentModel.DataAnnotations;

	public class UserLoginViewModel
	{
		[Required(ErrorMessage = "Email required")]
		[RegularExpression(KnownRegularExpression.Email, ErrorMessage = "Email not valid")]
		[StringLength(100, MinimumLength = 5, ErrorMessage = "Lenght must be between {0} and {1}")]
		public string Email { get; set; }

		[Required(ErrorMessage = "Password required")]
		[StringLength(100, MinimumLength = 8, ErrorMessage = "Lenght must be between {0} and {1}")]
		public string Password { get; set; }
	}
}